package com.yyaccp.itrip.utils;

/**
 * @author 天天向上 （john.yi@qq.com）
 * @date 2020/11/16.
 */
public class RandomUtil {
    public static String random(int length) {
        String n = Math.random() + "";
        return n.substring(2, 2+length);
    }

    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            System.out.println(RandomUtil.random(6));
        }
    }
}
